package com.adopapa.nezhacloud.common;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 自定义注解
 */
@Target({ ElementType.PARAMETER, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Logged {
	
	
	public String value() default "";
	
	public String module() default "";
	
	public String desc() default "";
	
	public ActionType actionType();
	
	
	
	/**
	 * 业务操作类型
	 */
	static public enum ActionType {
		QUERY("查询"), INSERT("新增"), UPDATE("修改"), DELETE("删除"), //
		SAVE("保存"), EXPORT("导出"), IMPORT("导入"), //
		LOGIN("登录"), LOGOUT("登出"), OTHER("其它"),

		;

		private String value;

		private ActionType(String value) {
			this.value = value;
		}

		public String getName() {
			return this.name();
		}

		public String getValue() {
			return this.value;
		}

	}
	
	
	

}
